import { inject, observer } from "mobx-react";
import { Button } from "antd";
import Style from "./home.less";
const Home = ({ store }) => {
  const {
    GlobalStore: { count, increment },
  } = store;
  return (
    <div className={Style.home}>
      {count}
      <Button
        type="primary"
        size="small"
        onClick={() => {
          increment();
        }}
      >
        +
      </Button>
    </div>
  );
};

export default inject("store")(observer(Home));
